package model

import (
	"gorm.io/gorm"
	"time"
)

type Orderes struct {
	Id        uint64         `gorm:"column:id;type:bigint UNSIGNED;primaryKey;not null;" json:"id"`
	CreatedAt time.Time      `gorm:"column:created_at;type:datetime(3);not null;" json:"created_at"`
	UpdatedAt time.Time      `gorm:"column:updated_at;type:datetime(3);not null;" json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);default:NULL;" json:"deleted_at"`
	OrderId   uint32         `gorm:"column:order_id;type:int UNSIGNED;comment:用户id;not null;" json:"order_id"`      // 用户id
	ProductId uint32         `gorm:"column:product_id;type:int UNSIGNED;comment:商品id;not null;" json:"product_id"`  // 商品id
	Status    uint8          `gorm:"column:status;type:tinyint UNSIGNED;comment:1-发货，2-交付;not null;" json:"status"` // 1-发货，2-交付
}
